Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Allow local values when constructing the injector. #18

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

groner
Copy link
Collaborator

@groner groner commented Jan 22, 2016

This implements the change proposed in #17.
@rduplain

Injector.sub() has used this form for a while, but it is useful when a
sub injector is not needed.
@groner groner changed the title Allow local values when constructing the injector (#17). Allow local values when constructing the injector. Jan 22, 2016

with RequestInjector(request=request) as injector:
injector.get('form:username')

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These changes should go into README.rst.in given the project's custom doc builder.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the built doc generated from the jeni.Injector docstring.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh right, I see that now. Reading the diff view isn't always optimal.

@rduplain
Copy link
Owner

+1 overall. This is a useful patch. Comments on docs are on the diff.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants